{% extends 'PortalMainBundle::layout.html.twig' %}

{% block stylesheets %}
  {{ parent() }}
{% endblock %}
{% block javascripts %}

<script src="/js/jquery.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/jquery.flexslider-min.js"></script>
<script src="/js/jquery.contenthover.min.js"></script>
<script src="/js/main.js"></script>
<script>
  
$(document).ready(function() {
  $('#contractContent').val('');
});

</script>
{% endblock %}
{% block content %}

<div class="row-fluid">
  <div class="span12">
    <div class="lineBox right">
      <div class="inner">
        <a title="" data-toggle="tooltip" class="btn metaIcon" href="#" data-original-title="Home"><span class="entypo home"><i></i>Home</span></a>
        <a class="btn btn-icon left btn-primary" href="#"><span class="entypo pencil"><i></i></span>Контент</a>
      </div>
    </div>
  </div>
</div>
<!-- / row-fluid -->


<div class="row-fluid">
  <div class="span9">
    <!-- ************** -->
    <!-- blog container -->

    <div class="blogContainer">

      <div class="blogTitle">
        <a title="" data-toggle="tooltip" class="btn metaIcon text pull-right" href="#" data-original-title="5 comments">5<span class="entypo comment"><i></i></span></a>
        <h3 class="big"><a href="#">{{content.content_title}}</a></h3>
        <span class="metaData"><span class="entypo clock"><i></i></span>Posted on <strong>{{content.created_at|date('Y-m-d')}}</strong> by <strong>{{content.username}}</strong></span>        
      </div>
      {% if content.img_large is not null %}
      <div class="blogPhoto">
        <a href="#"><img class="easyFrame" alt=" " src="/{{content.img_large}}"></a>
      </div>
      {% endif %}
      <div class="blogContent">
        <p>
          {{content.content_body | raw}}          
        </p>

      </div>

      {% if commentPermission == true %}
        {% render 'PortalCommentBundle:Comment:commentList' with {'tableName' : tableName, 'tableId' : tableId} %}
      {% endif %}

    </div>
    <!-- ************** -->
    <!-- / blog container -->

  </div>
  {% render 'PortalMainBundle:Right:rightComponent' with {'contentId' : contentId} %}
  

</div>




{% endblock %}